package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiRequestLossWarningData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiRequestLossWarningData   {
  @JsonProperty("pageSize")
  private Integer pageSize = null;

  @JsonProperty("index")
  private Integer index = null;

  /**
   * 类型：大比例转出、转托管
   */
  public enum LossTypeEnum {
    BIG_ROLL_OUT("BIG_ROLL_OUT"),
    
    TURN_TO_HOST("TURN_TO_HOST");

    private String value;

    LossTypeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static LossTypeEnum fromValue(String text) {
      for (LossTypeEnum b : LossTypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("lossType")
  private LossTypeEnum lossType = null;

  public ApiRequestLossWarningData pageSize(Integer pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  /**
   * 分页查询的一页记录数，默认为20
   * @return pageSize
  **/
  @ApiModelProperty(example = "20", value = "分页查询的一页记录数，默认为20")


  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  public ApiRequestLossWarningData index(Integer index) {
    this.index = index;
    return this;
  }

  /**
   * 页码数，第一页为0
   * @return index
  **/
  @ApiModelProperty(example = "1", value = "页码数，第一页为0")


  public Integer getIndex() {
    return index;
  }

  public void setIndex(Integer index) {
    this.index = index;
  }

  public ApiRequestLossWarningData lossType(LossTypeEnum lossType) {
    this.lossType = lossType;
    return this;
  }

  /**
   * 类型：大比例转出、转托管
   * @return lossType
  **/
  @ApiModelProperty(value = "类型：大比例转出、转托管")


  public LossTypeEnum getLossType() {
    return lossType;
  }

  public void setLossType(LossTypeEnum lossType) {
    this.lossType = lossType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRequestLossWarningData apiRequestLossWarningData = (ApiRequestLossWarningData) o;
    return Objects.equals(this.pageSize, apiRequestLossWarningData.pageSize) &&
        Objects.equals(this.index, apiRequestLossWarningData.index) &&
        Objects.equals(this.lossType, apiRequestLossWarningData.lossType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pageSize, index, lossType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRequestLossWarningData {\n");
    
    sb.append("    pageSize: ").append(toIndentedString(pageSize)).append("\n");
    sb.append("    index: ").append(toIndentedString(index)).append("\n");
    sb.append("    lossType: ").append(toIndentedString(lossType)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

